package com.app.util;

import java.util.Date;
import java.util.List;

import org.dom4j.Document;

import com.app.common.Weather;

public class WeatherAPIHelper {

	public Document getInfoByCityName(String cityName, Date date, String length) {
		DBManager dbManager = new DBManager();
		XmlHelper xmlHelper = new XmlHelper();
		Document document = null;
		List<Weather> list = dbManager.loadWeathers(cityName, date, length);
		document = xmlHelper.getXml(list);
		return document;
	}
}
